package com.library.system.modules.emailconfig.struct;

import org.mapstruct.*;
import com.library.system.modules.emailconfig.entity.EmailConfig;
import com.library.system.modules.emailconfig.vo.EmailConfigVO;
import com.library.system.modules.emailconfig.bo.EmailConfigInsert;
import com.library.system.modules.emailconfig.bo.EmailConfigUpdate;

import java.util.List;

/**
 * 邮箱配置(EmailConfig)对象映射转换
 *
 * @author xyh
 * @since 2023-09-24
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface EmailConfigStructMapper {

    EmailConfig updateToEmailConfig(EmailConfigUpdate update);

    EmailConfig insertToEmailConfig(EmailConfigInsert insert);

    EmailConfigVO emailConfigToEmailConfigVO(EmailConfig emailConfig);

    List<EmailConfigVO> configListToEmailConfigVO(List<EmailConfig> configList);
}

